﻿
namespace Client.Framework.Message
{
    /// <summary>
    /// Author: Leil
    /// Description: 回复消息基础类
    /// CreateTime: 2020/5/13 9:54:10
    /// </summary>
    abstract class ResponseBaseMessage
    {
        /// <summary>
        /// 消息号
        /// </summary>
        public int MsgId { get; set; }

        /// <summary>
        /// 客户端版本号
        /// </summary>
        public float Version { get; set; }

        /// <summary>
        /// 反序列化消息
        /// </summary>
        /// <param name="buffer">消息流</param>
        public abstract void Deserialize(byte[] buffer);
    }
}
